<template>
  <div class="home">
    <ul>
      <li @click="enterPush(item)" v-for="(item, index) in action" :key="index">
        {{ item.text }} 发布
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      action: [
        { text: "失物招领", id: 1 },
        { text: "寻物启事", id: 2 },
      ],
    };
  },
  async created() {},
  methods: {
    enterPush({ id }) {
      this.$router.push({
        name: "Push",
        query: { id },
      });
    },
  },
};
</script>

<style  scoped lang="less">
@import "~@less/Home";
</style>